<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${eventresourceAllocation.id}" type="hidden">


                        <div class="form-group">
                            <label class="col-sm-3 control-label">赛项模板ID：</label>

                            <div class="col-sm-8">
                                <!--                                <input id="jzEveMoId" name="jzEveMoId" th:value="${eventresourceAllocation.jzEveMoId}"-->
                                <!--                                       class="form-control" type="text">-->
                                <select class="form-control valid" name="jzEveMoId" id="jzEveMoId" disabled
                                >
                                </select>
                                <input id="jzEveMoIds" th:value="${eventresourceAllocation.jzEveMoId}"
                                       class="form-control" type="hidden">
                            </div>
                        </div>
                        <div class="form-group" id="yearbox">
                            <label class="col-sm-3 control-label">所属年份：</label>

                            <div class="col-sm-8">
                                <select class="form-control valid" name="year" id="year">
                                </select>
                                <input id="years" th:value="${eventresourceAllocation.year}"
                                       class="form-control" type="hidden">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">赛项名称：</label>
                            <div class="col-sm-8">
                                <input id="eventName" name="eventName" th:value="${eventresourceAllocation.eventName}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group" id="suoShu">
                            <label class="col-sm-3 control-label">所属赛项：</label>
                            <div class="col-sm-8">
                                <input id="eventTitle" name="eventTitle"
                                       th:value="${eventresourceAllocation.eventTitle}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group" id="yearOlds" style="display: none">
                            <label class="col-sm-3 control-label">宝宝年龄</label>
                            <div class="col-sm-8">
                                <input id="yearOldvalue"
                                       th:value="${eventresourceAllocation.eventTitle}" class="form-control"
                                       type="hidden">
                                <select class="form-control valid" id="yearOld" name="eventTitle">
                                    <option value="">请选择</option>
                                    <option value="0-1岁">0岁-1岁</option>
                                    <option value="1-2岁">1岁-2岁</option>
                                    <option value="2-3岁">2岁-3岁</option>
                                </select>
                                <!--<input id="eventType" name="eventType" placeholder="eventType" class="form-control" type="text">-->

                            </div>
                        </div>
                        <div class="form-group" id="gradebox">
                            <label class="col-sm-3 control-label">等级：</label>
                            <input id="gradeTs" th:value="${eventresourceAllocation.grade}" class="form-control"
                                   type="hidden">
                            <div class="col-sm-8">
                                <select class="form-control valid" id="grade" name="grade">
                                    <option value="1">初级</option>
                                    <option value="2">中级</option>
                                    <option value="3">高级</option>
                                </select>

                            </div>
                        </div>
                        <div class="form-group" id="eventTypebox">
                            <label class="col-sm-3 control-label">赛项类型：</label>
                            <!--								<input id="eventType" name="eventType" th:value="${eventresourceAllocation.eventType}" class="form-control" type="text">-->

                            <input id="eventTypeTs" th:value="${eventresourceAllocation.eventType}" class="form-control"
                                   type="hidden">
                            <div class="col-sm-8">
                                <select name="eventType" id="eventType" class="form-control">
                                    <option value="0"> 国赛</option>
                                    <option value="1"> 省赛</option>
                                    <option value="2"> 市赛</option>
                                    <option value="3"> 其他赛</option>
                                </select>

                            </div>
                        </div>
                        <!--                        <div class="form-group">-->
                        <!--                            <label class="col-sm-3 control-label">封面图：</label>-->
                        <!--                            <div class="col-sm-8">-->
                        <!--&lt;!&ndash;                                <input id="img" name="img" th:value="${eventresourceAllocation.img}"&ndash;&gt;-->
                        <!--&lt;!&ndash;                                       class="form-control" type="text">&ndash;&gt;-->
                        <!--                                <div class="layui-form-item">-->
                        <!--                                    <div class="layui-input-block">-->
                        <!--                                        <div class="layui-upload-drag" id="drag">-->
                        <!--                                            <i class="layui-icon"></i>-->
                        <!--                                            <p>点击上传，或将文件拖拽到此处</p>-->
                        <!--                                            <div id="uploadDemoView" >-->
                        <!--                                                <hr>-->
                        <!--                                                <div th:if="${ jazSysBanner.picture != '' }">-->
                        <!--                                                    <img th:src="${jazSysBanner.picture}" alt="上传成功后渲染" style="max-width: 196px">-->
                        <!--                                                </div>-->
                        <!--                                                <div th:if="${ jazSysBanner.picture == '' }">-->
                        <!--                                                    <img src="" alt="上传成功后渲染" style="max-width: 196px">-->
                        <!--                                                </div>-->
                        <!--                                            </div>-->
                        <!--                                        </div>-->
                        <!--                                        <input id="img" name="img" th:value="${eventresourceAllocation.img}" lay-verify="picture">-->
                        <!--                                    </div>-->
                        <!--                                </div>-->
                        <!--                            </div>-->
                        <!--                        </div>-->
                        <!--																											<div class="form-group">	-->
                        <!--								<label class="col-sm-3 control-label">创建时间：</label>-->
                        <!--								<div class="col-sm-8">-->
                        <!--																										<input id="createTime" name="createTime" th:value="${eventresourceAllocation.createTime}" class="form-control" type="text">-->
                        <!--																									</div>-->
                        <!--							</div>-->
                        <!--																											<div class="form-group">	-->
                        <!--								<label class="col-sm-3 control-label">修改时间：</label>-->
                        <!--								<div class="col-sm-8">-->
                        <!--																										<input id="updateTime" name="updateTime" th:value="${eventresourceAllocation.updateTime}" class="form-control" type="text">-->
                        <!--																									</div>-->
                        <!--							</div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">学习人数：</label>
                            <div class="col-sm-8">
                                <input id="numStus" name="numStus" th:value="${eventresourceAllocation.numStus}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group" id="videobox" style="display: none">
                            <label class="col-sm-3 control-label">视频：</label>
                            <div class="col-sm-8">
                                <div id="videoShow"></div>
                                <input type="button" class="btn btn-success" id="videobtn" value="上传视频">
                                </input>
                            </div>
                        </div>
                        <div class="form-group" id="mp4urls" style="display: none">
                            <label class="col-sm-3 control-label">视频链接：</label>
                            <div class="col-sm-8">
                                <input id="mp4url" name="video" placeholder="视频链接" class="form-control"
                                       type="text" th:value="${eventresourceAllocation.video}">
                            </div>
                        </div>
                        <div id="fileProgress" class="form-group" style="display: flex;flex-direction: row; justify-content: center;">
                            <label class="col-sm-3 control-label">上传进度：</label>
                            <div class="layui-progress layui-progress-big" lay-showPercent="yes"
                                 lay-filter="progressBar" style="width: 70%">
                                <div class="layui-progress-bar layui-bg-red" lay-percent="0%"></div>
                            </div>
                        </div>
                        <div class="form-group" id="fmImg">
                            <label class="col-sm-3 control-label">封面图：</label>
                            <div class="col-sm-8">
                                <!--                                <input id="img" name="img" placeholder="img" class="form-control" type="text">-->
                                <div class="layui-form-item">
                                    <div class="layui-input-block" style="margin: 0px">
                                        <div class="layui-upload-drag" id="drag">
                                            <i class="layui-icon" th:if="${ eventresourceAllocation.img == '' }"></i>
                                            <p th:if="${ eventresourceAllocation.img == '' }">
                                                点击上传，或将文件拖拽到此处</p>
                                            <div id="uploadDemoView">
                                                <div th:if="${ eventresourceAllocation.img != '' }">
                                                    <img th:src="${eventresourceAllocation.img}"
                                                         style="max-width: 196px">
                                                </div>
                                                <div th:if="${ eventresourceAllocation.img == '' }">
                                                    <img src="" style="max-width: 196px">
                                                </div>
                                            </div>
                                        </div>
                                        <input type="hidden" id="img" name="img" lay-verify="picture"
                                               th:value="${eventresourceAllocation.img}">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group" id="jianjie" style="display: none">
                            <label class="col-sm-3 control-label">资源简介：</label>
                            <div class="col-sm-8">
                                <textarea id="jianjievalues" th:value="${eventresourceAllocation.introduce}"
                                          name="introduce" class="form-control" rows="5"></textarea>
                                <input type="hidden" id="jianjievaluesvalue"
                                       th:value="${eventresourceAllocation.introduce}">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" id="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/webJs/eventresource/eventresourceAllocation/edit.js?r=423">
</script>
</body>
</html>
